package commands;

import controller.Controller;

/**
 * Commande destinee a prevenir le controleur qu'il y a eu detection d'une pression sur un bouton.
 */
public class DetectorToControllerButtonClickedCommand implements Command {

	private Controller controller;
	private int buttonID;

	public DetectorToControllerButtonClickedCommand(Controller controller, int buttonID) {
		this.controller = controller;
		this.buttonID = buttonID;
	}
	
	@Override
	public void execute() {
		controller.buttonPressed(buttonID);
	}

}
